<?php
	/**
	 * @author EVANDRO DE OLIVEIRA.
	 * @category CONTROLLER
	 * @package CONTROLLERS.
	 * @since 09/05/2012.
	 * @last_update 05/05/2012.
	 * @copyright 2012.
	 * @version 1.0.
	 *
	 */
	class FaltasController extends Zend_Controller_Action{
		/**
		 * Inicializa a controller, fazendo todas as verificações definidas.
		 */
		public function init(){
			$objAuthNamespace = new Zend_Session_Namespace('Zend_Auth');
	
			if(!$objAuthNamespace->session_initialized){
				$this->_redirect('/account/login');
			}
	
			$this->strTitleP = 'FALTAS';
			$this->strTitleS = 'Falta';
		}
		
		public function indexAction(){
			$this->view->strTitleP = $this->strTitleP;
	      $this->view->strTitleS = $this->strTitleS;
	      
	      $this->view->arrFilterFields = array(
	        'Matrícula' => array(
	          'name' => 'ds_sigla', 
	          'type' => 'text', 
	          'width' => '50', 
	          'maxlength' => '5'
	        ),
	        'Módulo' => array(
	          'name' => 'ds_modulo', 
	          'type' => 'text', 
	          'width' => '250', 
	          'maxlength' => '120'
	        ),
	      );
		}
	}